<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of requirement_fault
 *
 * @author wilson
 */
class RequirementFault extends AppModel {

    //put your code here
    var $name = "RequirementFault";
    var $actsAs = array('Logable' => array(
            'userModel' => 'User',
            'userKey' => 'user_id',
            'change' => 'full', // options are 'list' or 'full'
            'description_ids' => TRUE // options are TRUE or FALSE
            ));
    var $belongsTo = array(
        'Requirement' => array(
            'model' => 'Requirement'
        )
    );
    var $hasAndBelongsToMany = array(
        'ProyectRequirement' => array(
            'className' => 'ProyectRequirement',
            'joinTable' => 'proyect_requirements_requirement_faults',
            'foreignKey' => 'requirement_fault_id',
            'associationForeignKey' => 'proyect_requirement_id',
        ),
        'CandidateRequirement' => array(
            'className' => 'CandidateRequirement',
            'joinTable' => 'candidate_requirements_requirement_faults',
            'foreignKey' => 'requirement_fault_id',
            'associationForeignKey' => 'candidate_requirement_id',
        )
    );

}

?>
